<div class="submenus view">
<h2><?php  echo __('Submenu');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Parent Id'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['parent_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Lft'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['lft']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Rght'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['rght']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Slug'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['slug']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Url'); ?></dt>
		<dd>
			<?php echo h($submenu['Submenu']['url']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Submenu'), array('action' => 'edit', $submenu['Submenu']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Submenu'), array('action' => 'delete', $submenu['Submenu']['id']), null, __('Are you sure you want to delete # %s?', $submenu['Submenu']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Submenus'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Submenu'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menuses'), array('controller' => 'menuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menus'), array('controller' => 'menuses', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Menuses');?></h3>
	<?php if (!empty($submenu['Menus'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Parent Id'); ?></th>
		<th><?php echo __('Lft'); ?></th>
		<th><?php echo __('Rght'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Slug'); ?></th>
		<th><?php echo __('Url'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($submenu['Menus'] as $menus): ?>
		<tr>
			<td><?php echo $menus['id'];?></td>
			<td><?php echo $menus['parent_id'];?></td>
			<td><?php echo $menus['lft'];?></td>
			<td><?php echo $menus['rght'];?></td>
			<td><?php echo $menus['name'];?></td>
			<td><?php echo $menus['slug'];?></td>
			<td><?php echo $menus['url'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'menuses', 'action' => 'view', $menus['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'menuses', 'action' => 'edit', $menus['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'menuses', 'action' => 'delete', $menus['id']), null, __('Are you sure you want to delete # %s?', $menus['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Menus'), array('controller' => 'menuses', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
